<%@ page import="com.graduation.lastproject.entity.HotelInfo" %>
<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/10
  Time: 21:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    HotelInfo hotelInfo= (HotelInfo) request.getAttribute("hotelInfo");
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<c:set var="hotelInfo" value="<%=hotelInfo%>" />
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>查看图片</title>
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/business/uploadInfoEdit/uoloadPhotoEdit.js"></script>
    <style type="text/css">
        .navbar{
            background-color: #FFE4C4;
        }
        .col-md-4{
            padding-top: 7px;
            padding-right: 0px;
        }
        img{
            width: 34px;
            height: 34px;
        }
        img:hover{
            width:100px;
            height:100px;
        }
        /*只显示纵向滑动条*/
        html { overflow-x: hidden; overflow-y: hidden; }
    </style>
    <script>
        var ctx='${ctx}';
        var hotelRoomType='${hotelInfo.hotelRoomType}';
        var businessName='${businessName}';
        var mainPicLocation='${hotelInfo.mainPicLocation}';
        var big='${hotelInfo.bigRoomPicLocation}';
        var dou='${hotelInfo.douRoomPicLocation}';
        var cir='${hotelInfo.circleRoomPicLocation}';
        var cou='${hotelInfo.couplesRoomPicLocation}';
        var hotelId='${hotelInfo.id}';
        console.info("路径:"+ctx);
        console.info("登录名:"+businessName+"---酒店房间类型:"+hotelRoomType+"---主图地址:"+mainPicLocation);
    </script>
</head>
<body>
<nav class="navbar" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="home">
                <span class="glyphicon glyphicon-user" aria-hidden="true" ></span>
            </a>
            <span class="navbar-brand">欢迎上传酒店信息</span>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="uploadInfoEdit">酒店信息</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<form class="form-horizontal center-block" role="form" id="yanzheng" enctype="multipart/form-data" method="post" <%--action="uploadPhoto"--%>>
   <%-- <input type="hidden" name="hotelPhone" value="${hotelInfo.hotelPhone}">   &lt;%&ndash;酒店电话也具有唯一标识&ndash;%&gt;--%>
    <input type="hidden" name="hotelid" value="${hotelInfo.id}">   <%--酒店id --%>
    <div class="form-group">
        <label class="col-md-4 control-label"><img src="/static/img/hotelpic/main.png" />酒店主图:</label>
        <div class="col-md-4">
            <input class="form-control" id="main"  name="files"
                   type="file" placeholder="" autocomplete="off" />
        </div>
        <div class="col-md-4"><img <%--src="${hotelInfo.mainPicLocation}"--%> id="mainPic"/></div>
    </div>

    <div class="form-group" id="menu1">
        <label class="col-md-4 control-label"> <img src="/static/img/hotelpic/bigRoom.png" />大床房图:</label>
        <div class="col-md-4">
            <input class="form-control" id="" name="files"  type="file" placeholder="" autocomplete="off" />
        </div>
        <div class="col-md-4" id="id1"><img <%--src="${hotelInfo.bigRoomPicLocation}"--%> id="bigPic"/></div>
    </div>

    <div class="form-group" id="menu2">
        <label class="col-md-4 control-label"><img src="/static/img/hotelpic/douRoom.png" />双人房图:</label>
        <div class="col-md-4">
            <input class="form-control" id="" name="files" type="file" placeholder="" autocomplete="off" />
        </div>
        <div class="col-md-4" id="id2"><img <%--src="${hotelInfo.douRoomPicLocation}"--%>  id="douPic"/></div>
    </div>


    <div class="form-group" id="menu3">
        <label class="col-md-4 control-label"><img src="/static/img/hotelpic/circles.png" />商务房图:</label>
        <div class="col-md-4">
            <input class="form-control" id="" name="files" type="file" placeholder=""autocomplete="off" />
        </div>
        <div class="col-md-4" id="id3"><img <%--src="${hotelInfo.circleRoomPicLocation}"--%>  id="cirPic"/></div>
    </div>

    <div class="form-group" id="menu4">
        <label class="col-md-4 control-label"><img src="/static/img/hotelpic/couples.png" />情侣房图:</label>
        <div class="col-md-4">
            <input class="form-control"  name="files"  type="file" placeholder=""  autocomplete="off" />
        </div>
        <div class="col-md-4" id="id4"><img <%--src="${hotelInfo.couplesRoomPicLocation}"--%>  id="couPic"/></div>
    </div>



    <div class="form-group" id="register">
        <label class="col-sm-2 control-label "> </label>
        <div class="col-sm-4">
            <input class="btn btn-default pull-right" type="button" id="btn-uploadPhoto" value="重选上传" />
        </div>
    </div>
</form>
</body>
</html>
